#include "lvgl.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#include "lv_demos.h"
#include "lv_port_disp_template.h"
#include "lv_port_indev_template.h"

#define LVGL_TICK 10

void app_main(void)
{
	printf("hello TFTS169AC\n");

	lv_init();
	printf("success: lv_init()\n");

	lv_port_disp_init();
	printf("success: lv_port_disp_init()\n");

	lv_port_indev_init();
	printf("success: lv_port_indev_init()\n");

	lv_demo_widgets();

	while (1) {
		lv_tick_inc(LVGL_TICK);
		lv_timer_handler();
		usleep(LVGL_TICK * 1000);
	}
}
